home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
GETC.SCR
< prev
next >
Wrap
Text File
|
1991-12-29
|
2KB
|
42 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« GetChar »ye«
/GETC[HARACTER] {Prompt} {List}[ {variable}][ LC]
/cw
Gets a »ma«single character»#« from the user. The character must be
one of those in »cy«{List}»#«. Otherwise the command will continue
to prompt until one of the characters in »cy«{List}»#« is entered.
»wh«{List}»#« List of valid characters. (»wh«""»#« = ALL
characters). The string must be enclosed in
double quotes ("") if it is empty (all
characters) or contains space or comma.
»wh«{Prompt}»#« The prompt that is displayed for the user. It
must be enclosed in quotes if it contains the
parse parameter(s). Variables are expanded.
»wh«{variable}»#« Optional token indicating the variable in
which the character is to be stored.
»wh«LC»#« Optional token which indicates that the
response should be left as is. The default is
to convert the response to upper case and to
convert »cy«{List}»#« to upper case.
.pg clr
The character is stored in the system variable »ye«CHAR»#« if
»cy«{variable}»#« is not entered. You can access this variable once
the »%t«/GETC»#« command has been executed.
.pg clr
Here is an example of a »%t«/GETC»#« command which prompts for the
a letter between "»ma«A»#«" and "»ma«C»#«". Press »bo«<enter>»#« to
execute the command.
|/GETC " Enter a letter between A-C:" ABC
Your response is saved in the variable CHAR.
| Your answer was: »ye«%Char»#«
/ENDEXEC